package com.edu.neusoft.cookbook.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.edu.neusoft.cookbook.common.ResponseResult;
import com.edu.neusoft.cookbook.entity.Comments;
import com.edu.neusoft.cookbook.mapper.CommentsMapper;
import com.edu.neusoft.cookbook.service.CommentsService;
import org.springframework.stereotype.Service;

/**
 * (Comments)表服务实现类
 *
 * @author makejava
 * @since 2024-12-07 12:51:03
 */
@Service
public class CommentsServiceImpl extends ServiceImpl<CommentsMapper, Comments> implements CommentsService {

    @Override
    public ResponseResult findByPage(int pageNum, int pageSize) {
        Page<Comments> page = new Page<>(pageNum, pageSize);
        baseMapper.selectPage(page, null);
        return ResponseResult.okResult(page);
    }
}

